package com.hanlp.test;

import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.geometry.Orientation;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.FlowPane;
import javafx.stage.Stage;

public class FlowPaneT extends Application {
    @Override
    public void start(Stage PrimaryStage) {
        Label Firstname = new Label("First name:");
        Label MI = new Label("MI:");
        FlowPane pane = new FlowPane(Orientation.HORIZONTAL, 5, 5);
        pane.setPadding(new Insets(10, 12, 13, 14));
        pane.getChildren().addAll(Firstname,new TextField(),MI);

        TextField textField = new TextField();
        textField.setPrefColumnCount(1);
        pane.getChildren().addAll(textField, new Label("Last Name:"), new TextField());
        Scene scene = new Scene(pane, 320, 100);
        PrimaryStage.setTitle("ShowFlowPane");
        PrimaryStage.setScene(scene);
        PrimaryStage.show();
        System.out.println(pane.getChildren());
    }

    public static void main(String[] args) {
        launch(args);
    }
}
